home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
kiss-0.11
/
kiss-0
/
kiss
/
src
/
catfile.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-23
|
314b
|
22 lines
#include "kiss.h"
void catfile (FILE *inf, char *name, int showname, int printonly)
{
int
ch;
if (showname)
printf ("\n%s\n", name);
while (1)
{
ch = fgetc (inf);
if (feof (inf))
break;
if (! isprint (ch) && printonly)
printf ("\\%2.2x", ch);
else
putchar (ch);
}
}